package com.xquant.marketdata.marketdata.controller;

import com.github.pagehelper.PageInfo;
import com.xquant.marketdata.marketdata.service.VolatilityCurveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 下拉框查询
 *
 * @author ershuai.zhao
 */
@RestController
@RequestMapping("volatilityCurveController")
public class VolatilityCurveController {

    @Autowired
    private VolatilityCurveService volatilityCurveService;

    /**
     * 查询 债券信息
     */
    @ResponseBody
    @RequestMapping(value = "/queryVolatilityCurveInfoByPage.action")
    public PageInfo<Map> queryVolatilityCurveInfoByPage(@RequestParam Map<String, Object> param) {
        PageInfo<Map> pageInfo = volatilityCurveService.queryVolatilityCurveInfoByPage(param);
        return pageInfo;
    }
    /**
     * 查询 债券分红
     */
    @ResponseBody
    @RequestMapping(value = "/queryVolatilityCurvePriceByPage.action")
    public PageInfo<Map> queryVolatilityCurvePriceByPageByPage(@RequestParam Map<String, Object> param) {

        PageInfo<Map> pageInfo = volatilityCurveService.queryVolatilityCurvePriceByPage(param);

        return pageInfo;
    }





}
